<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic"%>

<html:form action="/sistema/gratificacao/criar" method="post" focus="dataRegistro">
	<table class="tbForm">
		<logic:messagesPresent message="false">
		<tr>
			<td colspan="2" class="erro">
				<bean:message key="formulario.informar.erros"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="erro">
				<html:messages id="mensagem" message="false" property="falha">
					<bean:write name="mensagem"/>
				</html:messages>
			</td>
		</tr>
		</logic:messagesPresent>
		
		<tr>
			<td valign="top" align="right"><bean:message key="formulario.gratificacao.dataregistro"/>:</td>
			<td align="left">
				<html:text property="dataRegistro" size="12" maxlength="10"/> <html:img pageKey="sistema.ico.calendario" onclick="displayCalendar(document.forms[0].dataRegistro,'dd/mm/yyyy',this)"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('gratificacao/dataRegistro.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="dataRegistro">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>		
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.gratificacao.valorpago"/>:</td>
			<td align="left">
				<html:text property="valorPago" size="12" maxlength="10"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('gratificacao/valorPago.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="valorPago">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.gratificacao.usuario"/>:</td>
			<td align="left">
				<html:select property="usuarioLogin">
					<html:option value=""/>
					<html:options collection="usuarios" labelProperty="nome" property="usuarioLogin" />
				</html:select>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('gratificacao/usuario.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="usuarioLogin">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.gratificacao.observacao"/>:</td>
			<td align="left">
				<html:textarea property="observacao" rows="5" cols="50"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('gratificacao/observacao.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="observacao">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td align="left">
				<html:submit><bean:message key="sistema.botao.salvar"/></html:submit>
			</td>
		</tr>
	</table>
</html:form>